<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!-- Наша менюшка -->
    <nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
        <div class="container-fluid">
            <a class="navbar-brand"><img src="https://i.ibb.co/Dpbxpk5/pacman-Open.png" alt="pacman-Open" border="0"></a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse"
                    aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
                <span class="navbar-toggler-icon"></span>
            </button>

            <div class="collapse navbar-collapse" id="navbarNavAltMarkup">
                <div class="navbar-nav">
                    <a class="nav-link active" aria-current="page" href="{% url 'index' %}">Главная</a>
                    {% if user.is_authenticated %}
                        <a class="nav-link" href="{% url 'profile' %}">Профиль</a>
                        <a class="nav-link" href="{% url 'voting_create' %}">Создать голосование</a>
                        <a class="nav-link" href="{% url 'about_us' %}">О нас</a>
                        <a class="nav-link" href="{% url 'logout' %}">Выйти</a>
                    {% else %}
                        <a class="nav-link"  href="{% url 'django_registration_register' %}">Зарегистрироваться</a>
                        <a class="nav-link"  href="{% url 'login' %}">Войти</a>
                    {% endif %}
                </div>
            </div>
        </div>
    </nav>
</body>
</html>